
package com.smile.frame.springbootsatoken.config;


/**
 * @author LGC
 */
public interface TokenConstants {

    /**
     * 后端管理登录 的类型: LOGIN_TYPE
     */
    String LOGIN_TYPE_ADMIN = "admin";

    /**
     * 平台类型
     */
    String PLATFORM_TYPE = "Platform-Type";
    /**
     * token请求头key
     */
    String AUTHORIZATION_KEY = "Authorization";

    /**
     * AuthSession 的类型: Account-Session
     */
    String SESSION_TYPE_ACCOUNT = "Account-Session";

    /**
     * AuthSession 的类型: Token-Session
     */
    String SESSION_TYPE_TOKEN = "Token-Session";


    /**
     * 跨域处理过滤器的注册顺序
     */
    public static final int CORS_FILTER_ORDER = -103;

    /**
     * 上下文过滤器的注册顺序
     */
    public static final int TOKEN_CONTEXT_FILTER_ORDER = -104;

    /**
     * RPC 框架权限过滤器的注册顺序
     */
    public static final int PERM_FILTER_ORDER = -30000;

    /**
     * RPC 框架上下文过滤器的注册顺序
     */
    public static final int RPC_CONTEXT_FILTER_ORDER = -30005;

    /**
     * Content-Type  key
     */
    public static final String CONTENT_TYPE_KEY = "Content-Type";

    /**
     * Content-Type  text/plain; charset=utf-8
     */
    public static final String CONTENT_TYPE_TEXT_PLAIN = "text/plain; charset=utf-8";

    /**
     * Content-Type  application/json;charset=UTF-8
     */
    public static final String CONTENT_TYPE_APPLICATION_JSON = "application/json;charset=UTF-8";


}
